﻿using Anley.DomainDrivenDesign.Contract.DependencyInjection;

namespace Anley.DomainDrivenDesign.Contract.Helper;

/// <summary>
/// Guid生成器接口
/// </summary>
public interface IGuidGenerator
    : ISingletonAutoInject
{
    /// <summary>
    /// 时间戳置首（适用于MySQL）
    /// </summary>
    /// <returns></returns>
    Guid SequentialAsString();

    /// <summary>
    /// 时间戳置尾（适用于SQL Server）
    /// </summary>
    /// <returns></returns>
    Guid SequentialAtEnd();
}